package com.wangxiaotao.springcloud.alibaba.service.impl;

import com.wangxiaotao.springcloud.alibaba.dao.StorageDao;
import com.wangxiaotao.springcloud.alibaba.entity.CommonResult;
import com.wangxiaotao.springcloud.alibaba.entity.Storage;
import com.wangxiaotao.springcloud.alibaba.service.StorageService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
@RequiredArgsConstructor
public class StorageServiceImpl implements StorageService {
    private final StorageService storageService;

    @Override
    public void decrease(Long productId, Integer count) {
        log.info("----->扣减库存 start");
        storageService.decrease(productId, count);
        log.info("----->扣减库存 end");
    }
}
